package com.eascs.p2p.common.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * The persistent class for the p2p_investor_wallet database table.
 * 
 */
@Entity
@Table(name = "p2p_investor_wallet_pay")
public class InvestorWalletPayEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**充值状态:1充值中2成功3失败*/
	public static final int PAY_PROCESSING=1;
	public static final int PAY_SUCCESS=2;
	public static final int PAY_FAIL=3;
	
	@Id
	private String id;
	
	@Column(name = "investor_id")
	private String investorId;
	
	@Column(name = "wallet_id")
	private String walletId;
	
	@Column(name = "amount")
	private BigDecimal amount;

	@Column(name = "status")
	private Integer status;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time")
	private Date createTime;


	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time")
	private Date updateTime;


	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}


	public String getInvestorId() {
		return investorId;
	}


	public void setInvestorId(String investorId) {
		this.investorId = investorId;
	}


	public String getWalletId() {
		return walletId;
	}


	public void setWalletId(String walletId) {
		this.walletId = walletId;
	}


	public BigDecimal getAmount() {
		return amount;
	}


	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}


	public Integer getStatus() {
		return status;
	}


	public void setStatus(Integer status) {
		this.status = status;
	}


	public Date getCreateTime() {
		return createTime;
	}


	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}


	public Date getUpdateTime() {
		return updateTime;
	}


	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}


	@Override
	public String toString() {
		return "InvestorWalletPayEntity [id=" + id + ", investorId=" + investorId + ", walletId=" + walletId
				+ ", amount=" + amount + ", status=" + status + ", createTime=" + createTime + ", updateTime="
				+ updateTime + "]";
	}

	
	
}